#pragma once
#include <irrKlang/irrKlang.h>
#include <iostream>
#include <string>

using namespace irrklang;
using namespace std;

class Sound
{
public:
	enum SOUND
	{
		MENUKEY = 0,
		BACKGROUND,
		JUMP,
		CHARATTACK,
		WALK,
		SELECT,

		TOTALSOUND
	};

	// sound engine
	ISoundEngine* theSoundEngine;

	// sounds
	ISound** theSound;
	string* soundFilename;

	Sound(void);
	~Sound(void);

	// load sound
	bool Init(void);

	// play sound
	bool Play(SOUND soundID, bool playLooped = false);

	// pause sound
	bool Pause(SOUND soundID, bool pause = true);

	// stop sound
	bool Stop(SOUND soundID);

	// stop all sound
	void StopAll(void);
};
